<?php

$arr = array(
    "foo" => "bar",
    12 => true);

echo $arr["foo"]; // bar
echo $arr[12];    // 1
?>